<template>
  <div class="recommend">
    <div v-for="item in recommend" class="recommenditem">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <div class="item-text">{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "recommendView",
  props: {
    recommend: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style>
.recommend {
  display: flex;
  width: 100%;
  padding: 15px 0 15px;
  border-bottom: 10px solid #eee;
}
.recommenditem {
  flex: 1;
  text-align: center;
}
.recommenditem img {
  width: 90%;
}
.item-text {
  font-size: 14px;
}
</style>  